package com.yycwxt.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;

@Data
@TableName("dct_files")
public class File {
    @TableId(type = IdType.AUTO)
    @PositiveOrZero(message = "必须为正整数")
    private Integer id;

    @NotBlank(message = "长度不能为0")
    @NotNull(message = "不能为空")
    @Size(max = 18, message = "长度不能大于18")
    private String name;

    @Size(max = 63, message = "长度不能大于63")
    private String remark;
    private LocalDateTime created;
}
